[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 gotoxy()                Position the Cursor in the Text Window

 #include   <conio.h>

 void       gotoxy(x,y);
 int        x;
 int        y;

    gotoxy() moves the cursor to the specified position ('x','y') within
    the current text window. If the 'x' or 'y' coordinates given are
    outside the current window boundaries, the call to gotoxy() is
    ignored.

       Returns:     Nothing.

   Portability:     IBM PC and compatibles only.

   -------------------------------- Example ---------------------------------
    The following statements move the cursor to a specified position and
    print a line of text there.

           #include <conio.h>

           main()
           {
               gotoxy(30,10);
               cputs("Print text at (30,10).");
           }

See Also: wherex() wherey() window()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson